package observer.p1;
public class Main {
	public static void main(String[] args) {
		Subject newspaper = new Newspaper();
		Subject email = new Email();
		Observer you = new Student();
		Observer me = new Teacher();
		you.attach(newspaper);
		you.attach(email);
		me.attach(email);
		newspaper.setContents("new Message");
		email.setContents("Email content");
	}
}
